﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="LiveSupportAdd.ascx.cs" Inherits="AdminX_Company_LiveSupportAdd" %>
<%@ Register Src="../../Common/Alert.ascx" TagName="Alert" TagPrefix="uc1" %>
<%@ Register Src="../../Common/Textbox.ascx" TagName="Textbox" TagPrefix="uc2" %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls"
TagPrefix="FTB" %>
<div>
    <uc1:Alert ID="MessAlert1" runat="server" />
</div>
<div>
    <div style ="float:left; width:600px">
            <div>
               <asp:Label ID="lblClient" runat="server"  Width ="100px"  CssClass="text" Text ="Tên Đối tác"></asp:Label>
               <asp:TextBox ID="txtClient" runat="server" CssClass="boxlongest"   MaxLength="200" ValidationGroup="Input"></asp:TextBox><span style="color: #ff3333">*</span>
            </div>
            <div>
                <asp:Label ID="lblPosition"  Width ="100px"  runat="server" CssClass="text" Text ="Vị trí hiển thị"></asp:Label>
                <asp:DropDownList ID="ddlPosition" CssClass="boxlong"  runat="server">
                </asp:DropDownList>
            </div>
            <div>
                <asp:Label ID="lblImage" runat="server"  Width ="100px"  CssClass="text" Text ="Ảnh quảng cáo"></asp:Label>
                <input id ="iptImage" runat="server" type="file" size="30"  class="boxlongest"  />
            </div>
            <div style ="padding-left:110px;padding-bottom:10px ; color :Black  ">
            (Hiển thị tốt nhất với ảnh có độ phân giải 105x70px)
            </div>
             <div>
                <asp:Label ID="lblLink" runat="server"  Width ="100px"  CssClass="text" Text ="Đường dẫn"></asp:Label>
                <asp:TextBox ID="txtLink" runat="server" CssClass="boxlong"   MaxLength="200" ValidationGroup="Input"></asp:TextBox><span
                    style="color: #ff3333">*</span> <span style="color: #330033">(Ví dụ : www.oceansoftware.com.vn)
                    </span>
            </div>
            <div >
                <asp:Label ID="lblContent" Width ="100px" runat="server" CssClass="text" Text="Nội dung" ></asp:Label>
            </div>
<div>

 <uc2:TextBox id="FTBContent" runat="server"  ></uc2:TextBox>
</div>
    </div>
    <div style ="float:left; width:150px">
        <asp:Image ID="imgImage" runat ="server" Width="105px"  Height ="70px" BorderWidth="1px" BorderColor="Gray"     />
    </div>

</div> 
<div style="width:100%; float:left  ; padding:0px 0px 5px 0px ">
 <asp:CheckBox ID="chkDisplayOrder" runat="server" CssClass="text"  Text ="Ưu tiên hiển thị" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <asp:CheckBox ID="chkActive" runat="server" CssClass="text" Checked="true" Text ="Kích hoạt" />
</div>
<div style="width:100%; float:left ;  padding: 20px 20px 20px 0px ">
    <asp:Button ID ="btnSave" runat="server" Text="Lưu" Width ="80px"   ValidationGroup="Input" OnClick="btnSave_Click1" /> &nbsp;&nbsp;&nbsp;
    <asp:Button ID="btnCancel" runat="server" Text="Quay lại" Width ="80px"    OnClick="btnCancel_Click"  />   
</div>

<asp:RequiredFieldValidator ID="rfvTitle" runat="server" SetFocusOnError="true"   ControlToValidate="txtClient" Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="rfvLink" runat="server" SetFocusOnError="true"   ControlToValidate="txtLink" Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>


<asp:ValidationSummary ID="ValidationSummary4" ShowMessageBox="true" runat="server" ValidationGroup="Input" ShowSummary="False" />